package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbDividendRuleDao;
import com.gtw.modules.entity.TbDividendRule;
import com.gtw.modules.sys.service.SysDividendRuleservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/14.
 */
@Service
public class SysDividendRuleserviceImpl implements SysDividendRuleservice {
    @Autowired
    private TbDividendRuleDao dividendRuleDao;

    @Override
    public TbDividendRule queryObject(Integer id){
        return dividendRuleDao.queryObject(id);
    }

    @Override
    public List<TbDividendRule> queryList(Map<String, Object> map){
        return dividendRuleDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return dividendRuleDao.queryTotal(map);
    }

    @Override
    public void save(TbDividendRule dividendRule){
        dividendRuleDao.save(dividendRule);
    }

    @Override
    public void update(TbDividendRule dividendRule){
        dividendRuleDao.updateByPrimaryKey(dividendRule);
    }

    @Override
    public void delete(Integer id){
        dividendRuleDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        dividendRuleDao.deleteBatch(ids);
    }
}
